﻿using StarPizza.Model.BaseModel;
using StarPizza.ViewModel.Core;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StarPizza.ViewModel.ManagerSystem
{
    class PizzaAdministrator
    {
        StarDataDataContext db;
        PizzaTemplateLister pizzaTemplateLister;
        public PizzaTemplateLister PizzaTemplateLister { get { return pizzaTemplateLister; } }
        public PizzaAdministrator(StarDataDataContext db, PizzaTemplateLister pizzaTemplateLister)
        {
            this.db = db;
            this.pizzaTemplateLister = pizzaTemplateLister;
        }

        public void SaveChanges()
        {
            pizzaTemplateLister.SaveChanges();
        }
    }
}
